package com.llb666.e.shop.infrastructure.mapper;

import com.llb666.e.shop.api.vo.SearchItemsVo;
import com.llb666.e.shop.domain.entity.bo.ShopCartBo;
import com.llb666.e.shop.infracore.mapper.MyMapper;
import com.llb666.e.shop.infrastructure.po.ItemsPo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;


@Repository
public interface ItemsMapper extends MyMapper<ItemsPo> {
    //TODO 搜索🔍引擎 elasticSearch

    public List<SearchItemsVo> searchItems(@Param("paramsMap") Map<String, Object> map);

    public List<SearchItemsVo> searchItemsByThirdCat(@Param("paramsMap") Map<String, Object> map);

    public List<ShopCartBo> queryItemsBySpecIds(@Param("paramsList") List specIdsList);

}